/*
 * @Author: error: git config user.name & please set dead value or install git
 * @Date: 2022-08-31 10:26:21
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-06-25 18:17:38
 * @FilePath: \stm32g431_AllRings\applications\soft_iic.h
 * @Description:
 *
 * Copyright (c) 2022 by error: git config user.name && git config user.email & please set dead value or install git, All Rights Reserved.
 */
#ifndef __SOFT_IIC_H
#define __SOFT_IIC_H

#include <rtthread.h>
#include <board.h>
#include "rtdebug.h"

/* Includes ------------------------------------------------------------------*/
#include "stdint.h"

/* Exported types ------------------------------------------------------------*/


/* Exported define ------------------------------------------------------------*/


/* Exported constants --------------------------------------------------------*/


/* Exported macro ------------------------------------------------------------*/


/* Exported variables --------------------------------------------------------*/


/* Exported functions ------------------------------------------------------- */
void EE_IIC_Init(void);
void EE_IIC_Start(void);
void EE_IIC_Stop(void);
uint8_t EE_IIC_WaitAck(void);
void EE_IIC_Ack(void);
void EE_IIC_NAck(void);
void EE_IIC_SendByte(uint8_t data);
uint8_t EE_IIC_ReadByte(uint8_t ack);

#endif
